<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@ taglib prefix="c"
	uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib
	uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>都市信息网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="css/style.css">
</head>
<body background="images/back.gif">
	<center>
		<table border="0" width="920" height="auto" cellspacing="0"
			cellpadding="0" bgcolor="white">
			<tr>
				<td colspan="2">
					<!-- 页眉 --> <iframe src="admintop" frameBorder="0"
						width="920" scrolling="no" height="200"></iframe>
				</td>
			</tr>
			<tr>
				<td width="230" valign="top" align="center">
					<!-- 左侧 --> <iframe src="view/left.html" frameBorder="0"
						width="225" scrolling="no" height="400"></iframe>
				</td>
				<td width="690" height="400" align="center" valign="top"
					bgcolor="#FFFFFF">
					<center>
						<!-- 缴费专区 -->
						<table border="0" width="670" cellspacing="0" cellpadding="5">
							<tr height="35">
								<td style="text-indent: 5" valign="bottom"><font
									color="#004790"><b>■推荐信息</b>『缴费专区』</font></td>
							</tr>
							<tr bgcolor="#FAFCF5">
								<td style="border: 1 solid">
									<table border="0" width="100%" cellspacing="0" cellpadding="0"  style="table-layout:fixed;" >
										<tr height="23">
											<c:if test="${empty requestScope.list }">
												<td width="50%">『<b>暂时没有信息</b>』 <a href="">没有更多的信息</a></td>
											</c:if>
											<c:if test="${!empty requestScope.list }">
												<c:forEach items="${requestScope.list}" var="temp"
													varStatus="a">
													<td  width="50%"   style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
													『<b>${temp.info_type.type_name}</b>』 <a
														href="singleshow?type=${temp.info_type.type_sign}&id=${temp.id}">${temp.info_title}</a></td>
													<c:if
														test="${ fn:length(list) != (a.index+1) &&(a.index+1)%2 == 0}">
														<%
															out.print("</tr><tr height=\"23\">");
														%>
													</c:if>
												</c:forEach>
											</c:if>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<!-- 广告 -->
						<table border="0" width="670" cellspacing="0" cellpadding="0"
							style="margin-top: 1">
							<tr>
								<td align="center"><img src="images/pcard2.jpg"></td>
							</tr>
						</table>
						<!-- 免费专区 -->
						<table border="0" width="670" cellspacing="0" cellpadding="5">
							<tr height="35">
								<td style="text-indent: 5" valign="bottom"><font
									color="#004790"><b>■最新信息</b>『免费专区』</font></td>
							</tr>
							<tr bgcolor="#FAFCF5">
								<td style="border: 1 solid">
									<table border="0" width="100%" cellspacing="0" cellpadding="0">
										<tr height="23">
											<c:if test="${empty requestScope.flist }">
												<td width="50%">『<b>暂时没有信息</b>』 <a href="">没有更多的信息</a></td>
											</c:if>
											<c:if test="${!empty requestScope.flist }">
												<c:forEach items="${requestScope.flist}" var="temp"
													varStatus="a">
													<td width="50%" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
													『<b>${temp.info_type.type_name}</b>』 <a
														href="singleshow?type=${temp.info_type.type_sign}&id=${temp.id}">${temp.info_title}</a></td>
													<c:if
														test="${ fn:length(flist) != (a.index+1) &&(a.index+1)%2 == 0}">
														<%
															out.print("</tr><tr height=\"23\">");
														%>
													</c:if>
												</c:forEach>
											</c:if>
										</tr>
									</table>
								</td>
							</tr>
						</table>

						<table border="0" width="670" cellspacing="2" cellpadding="0">
							<tr>
								<td align="center">
									<table border="1" cellspacing="0" cellpadding="0" width="332"
										height="160" rules="none" bordercolor="lightgrey"
										bordercolorlight="lightgrey" bordercolordark="white">
										<c:if test="${!empty requestScope.tp1 }">
											<c:forEach items="${requestScope.tp1}" var="temp"
												varStatus="a">
												<c:if test="${ 1 == (a.index+1)}">
													<tr bgcolor="#00B48F" height="30">
														<td style="text-indent: 10"><b><font
																color="white">${temp.info_type.type_name}</font></b></td>
													</tr>
												</c:if>
												<tr bgcolor="#FAFCF5">
													<td style="text-indent: 3">★ <a
														href="singleshow?type=${temp.info_type.type_sign}&id=${temp.id}">${temp.info_title}</a></td>
												</tr>
												<c:if test="${ fn:length(tp1) == (a.index+1)}">
													<tr height="20" bgcolor="#FAFCF5">
														<td align="right"><a
															href="listshow?type=${temp.info_type.type_sign}">更多...</a>&nbsp;&nbsp;</td>
													</tr>
												</c:if>
											</c:forEach>
										</c:if>
									</table>
								</td>

								<td align="center">
									<table border="1" cellspacing="0" cellpadding="0" width="332"
										height="160" rules="none" bordercolor="lightgrey"
										bordercolorlight="lightgrey" bordercolordark="white">
										<c:if test="${!empty requestScope.tp2}">
											<c:forEach items="${requestScope.tp2}" var="temp"
												varStatus="a">
												<c:if test="${ 1 == (a.index+1)}">
													<tr bgcolor="#00B48F" height="30">
														<td style="text-indent: 10"><b><font
																color="white">${temp.info_type.type_name}</font></b></td>
													</tr>
												</c:if>
												<tr bgcolor="#FAFCF5">
													<td style="text-indent: 3">★ <a
														href="singleshow?type=${temp.info_type.type_sign}&id=${temp.id}">${temp.info_title}</a></td>
												</tr>
												<c:if test="${ fn:length(tp2) == (a.index+1)}">
													<tr height="20" bgcolor="#FAFCF5">
														<td align="right"><a
															href="listshow?type=${temp.info_type.type_sign}">更多...</a>&nbsp;&nbsp;</td>
													</tr>
												</c:if>
											</c:forEach>
										</c:if>
									</table>
								</td>
							</tr>
						</table>
						<br>
					</center>
				</td>
			</tr>

		</table>
		<!-- 页脚 -->
		<iframe src="view/end.html" frameBorder="0" width="920" scrolling="no"
			height="70" style="margin-top: 0"></iframe>
	</center>
</body>
</html>